import request from "@/utils/request"

// 查重
export  const checkType = async(type)  => request.get("/classtype?type="+type)

// 添加学科
export  const addType = async(params) => request.post("/classtype",params)

// 删除学科
export  const delType = async(id)  => request.delete("/classtype/"+id)

// 
export  const changeType = async(id,params)  => request.patch("/classtype/"+id,params)

//获取所有学科
export  const getType = async()  => request.get("/classtype/")
